package com.hzyb.oldpack.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hzyb.oldpack.dao.JdbcDao;
import com.hzyb.oldpack.service.ShopCartService;
@Service
public class ShopCartServiceImpl implements ShopCartService{

	@Resource
	private JdbcDao JdbcDao;


	@Override
	public List<Map<String, Object>> getShopCart(String userid) {
		List<Map<String, Object>> list=JdbcDao.getShopCart(userid);
		for(Map<String, Object> map:list) {
			map.put("type",JdbcDao.getShopType(map.get("cart_sid").toString()));
		}
		return list;
	}

}
